<ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">


    <%if(ret.select){%>
    <% if(ret.dev_edit) {%>
    <li data-name="home" class="layui-nav-item layui-nav-itemed">
        <a href="javascript:;" lay-tips="游戏管理" lay-direction="2">
            <i class="layui-icon layui-icon-home"></i>
            <cite>游戏管理</cite>
        </a> 
        <dl class="layui-nav-child">  
            <dd data-name="console">
                <a lay-href="<%=ret.bpath%>/server/index">游戏区服</a>
            </dd>
            <dd data-name="console">
                <a lay-href="<%=ret.bpath%>/opensdk/index">渠道接入</a>
            </dd>
            <dd data-name="innerAcc">
                <a lay-href="<%=ret.bpath%>/innerAcc/index">内部账号</a>
            </dd>
            <dd data-name="develops">
                <a lay-href="<%=ret.bpath%>/develops/index">开发者账号</a>
            </dd>            
            <dd data-name="console">
                <a lay-href="<%=ret.bpath%>/spirit/page">主机监控</a>
            </dd>


            <% for(let v of ret.forms[1]) {%>
            <dd data-name="console">
                <a lay-href="<%=ret.bpath%>/forms/values/index?id=<%=v._id%>"><%=v.name%></a>
            </dd>
            <% } %>
        </dl>
    </li>

    <li data-name="home" class="layui-nav-item">
        <a href="javascript:;" lay-tips="游戏管理" lay-direction="2">
            <i class="layui-icon layui-icon-auz"></i>
            <cite>安全设置</cite>
        </a>
        <dl class="layui-nav-child">
            <dd data-name="console">
                <a lay-href="<%=ret.bpath%>/iptable/index">IP白名单</a>
            </dd>
            <dd data-name="console">
                <a lay-href="<%=ret.bpath%>/ipblock/index">IP黑名单</a>
            </dd>
            <dd><a lay-href="<%=ret.bpath%>/accBlock/index">封停账号</a></dd>
            <dd><a lay-href="<%=ret.bpath%>/block/index">封停角色</a></dd>
        </dl>
    </li>
     <%}%>

    <% if(ret.event_edit) {%> 
    <li data-name="component" class="layui-nav-item">
        <a href="javascript:;" lay-tips="活动设置" lay-direction="2">
            <i class="layui-icon layui-icon-component"></i>
            <cite>活动设置</cite>
        </a>
        <dl class="layui-nav-child">
            <dd data-name="button">
                <a lay-href="<%=ret.bpath%>/config/index?cid=1">游戏公告</a>
            </dd>
            <!--
            <dd data-name="tabs">
                <a lay-href="<%=ret.bpath%>/config/index?cid=2" title="直接使用现金购买道具">道具直购</a>
            </dd>
            -->
            <dd data-name="tabs">
                <a lay-href="<%=ret.bpath%>/config/index?cid=8">经典活动</a>
            </dd>
            <dd data-name="tabs">
                <a lay-href="<%=ret.bpath%>/config/index?cid=88">超级活动</a>
            </dd>
            <dd data-name="tabs">
                <a lay-href="<%=ret.bpath%>/config/index?cid=9" title="全服发邮件">超级邮件</a>
            </dd>
            <dd data-name="tabs">
                <a lay-href="<%=ret.bpath%>/config/index?cid=100" title="兑换码">物品兑换</a>
            </dd>
            <% for(let v of ret.forms[2]) {%>
            <dd data-name="tabs">
                <a lay-href="<%=ret.bpath%>/forms/values/index?id=<%=v._id%>"><%=v.name%></a>
            </dd>
            <% } %>
        </dl>
    </li>

     <% }%>

    <% if(ret.player_edit) {%>
    <li data-name="template" class="layui-nav-item">
        <a href="javascript:;" lay-tips="用户管理" lay-direction="2">
            <i class="layui-icon layui-icon-user"></i>
            <cite>玩家管理</cite>
        </a>
        <dl class="layui-nav-child">
            <dd data-name="openid"><a lay-href="<%=ret.bpath%>/openid/index">账号列表</a></dd>

            <dd><a lay-href="<%=ret.bpath%>/proxy/index?api=role">角色列表</a></dd>
            <dd><a lay-href="<%=ret.bpath%>/roleDetail/index">角色详情</a></dd>
            <dd><a lay-href="<%=ret.bpath%>/proxy/index?api=mail">邮件管理</a></dd>
            <% for(let v of ret.forms[3]) {%>
            <dd>
                <a lay-href="<%=ret.bpath%>/forms/values/index?id=<%=v._id%>"><%=v.name%></a>
            </dd>
            <% } %>
        </dl>
    </li>
   <% }%>
    <% if(ret.view) {%>
    <li data-name="template" class="layui-nav-item">
        <a href="javascript:;" lay-tips="运营数据" lay-direction="2">
            <i class="layui-icon layui-icon-table"></i>
            <cite>运营数据</cite>
        </a>
        <dl class="layui-nav-child">
            <dd><a lay-href="<%=ret.bpath%>/dau/index">用户留存</a></dd>
            <dd><a lay-href="<%=ret.bpath%>/orderOne/index">订单列表</a></dd>
<!--             <dd><a lay-href="<%=ret.bpath%>/orderS/index">收入统计</a></dd> -->
            <dd><a lay-href="<%=ret.bpath%>/income/index">收入统计</a></dd>
            <% for(let v of ret.forms[4]) {%>
            <dd>
                <a lay-href="<%=ret.bpath%>/forms/values/index?id=<%=v._id%>"><%=v.name%></a>
            </dd>
            <% } %>
        </dl>
    </li>

    <li data-name="template" class="layui-nav-item">
        <a href="javascript:;" lay-tips="数据挖掘" lay-direction="2">
            <i class="layui-icon layui-icon-chart-screen"></i>
            <cite>数据挖掘</cite>
        </a>
        <dl class="layui-nav-child">
        <dd><a lay-href="<%=ret.bpath%>/online/index">在线人数</a></dd>
        <dd><a lay-href="<%=ret.bpath%>/plog/index">玩家日志</a></dd>
        <dd><a lay-href="<%=ret.bpath%>/dataDigOnline/index">时长分布</a></dd>
        <dd><a lay-href="<%=ret.bpath%>/apiLog/index">接口日志</a></dd>
        <dd><a lay-href="<%=ret.bpath%>/dataDigCard/index">卡牌统计</a></dd>
        <dd><a lay-href="<%=ret.bpath%>/dataDigGuide/index">新手分布</a></dd>
        <dd><a lay-href="<%=ret.bpath%>/dataDigLv/index">等级分布</a></dd>
        <dd><a lay-href="<%=ret.bpath%>/dataDigActive/index">活动参与</a></dd>
        </dl>
    </li>


     <% }%>

    <% if(ret.dev_edit) {%>




    <li data-name="template" class="layui-nav-item">
        <a href="javascript:;" lay-tips="其他设置" lay-direction="2">
            <i class="layui-icon layui-icon-set-sm"></i>
            <cite>其他设置</cite>
        </a>
        <dl class="layui-nav-child">
            <dd data-name="console">
                <a lay-href="<%=ret.bpath%>/forms/navbar/index">万能表单</a>
            </dd>
            <% for(let v of ret.forms[5]) {%>
            <dd>
                <a lay-href="<%=ret.bpath%>/forms/values/index?id=<%=v._id%>"><%=v.name%></a>
            </dd>
            <% } %>
        </dl>
    </li>
      <%}%>
    <%}%>
    <% if(ret.level >=10 && !ret.select) {%>
    <li data-name="app" class="layui-nav-item">
        <dd data-name="branch">
            <a lay-href="/branch/index">游戏管理</a>
        </dd>
        <dd data-name="members">
            <a lay-href="/members/index">成员管理</a>
        </dd>
        <dd data-name="authorize">
            <a lay-href="/authorize/index">权限管理</a>
        </dd>
        <dd data-name="log">
            <a lay-href="/log/index">日志记录</a>
        </dd>
            <dd data-name="console">
                <a lay-href="/setting/index">个性化设定</a>
            </dd> 
    </li>
    <%}%>
</ul>